<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a >直播记录</a></li>
			<li><a href="{:U('Liveing/add')}">添加视频</a></li>
		</ul>
		
		<form class="well form-search" method="post" action="{:U('Liveing/index')}">
			时间：
			<input type="text" name="start_time" class="js-date date" value="{$formget.start_time}" style="width: 80px;" autocomplete="off">-
			<input type="text" class="js-date date" name="end_time" value="{$formget.end_time}" style="width: 80px;" autocomplete="off"> &nbsp; &nbsp;
			关键字： 
			<input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword}" placeholder="请输入会员id...">
			<input type="submit" class="btn btn-primary" value="搜索">
		</form>		
		<form method="post" class="js-ajax-form" >

			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th align="center">编号</th>
						<th>会员昵称</th>
						<th>直播ID</th>
						<th>直播状态</th>
						<th>直播开始时间</th>
						<th>直播分类</th>
						<th>房间类型</th>
						<th>密码/价格</th>
						<th>视频类型</th>
						<th>在线人数</th>
						<th>本场收益</th>
						<th>打赏人数</th>
						<th>人均打赏</th>
						<th>播流地址</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<php>$islive=array("0"=>"直播结束","1"=>"直播中");$type=array("0"=>"普通房间","1"=>"密码房间","2"=>"门票房间","3"=>"计时房间");</php>
					<foreach name="lists" item="vo">
					<tr>
						<td align="center">{$vo.uid}</td>					
						<td>{$vo['userinfo']['user_nicename']} </td>
						<td>{$vo['showid']}</td>
						<td>{$islive[$vo['islive']]}</td>
						<td>{$vo.starttime|date="Y-m-d H:i:s",###}</td>
						<td>{$liveclass[$vo['liveclassid']]}</td>
						<td>{$type[$vo['type']]}</td>
						<td>{$vo['type_val']}</td>
						<td><if condition="$vo['anyway'] eq 0">竖屏<else/>横屏</if></td>
                        <td>{$vo['nums']}</td>
                        <td>{$vo['totalcoin']}</td>
                        <td>{$vo['total_nums']}</td>
                        <td>{$vo['total_average']}</td>
                        <td>{$vo['pull']}</td>
						<if condition="$vo['isvideo']==1">
						<td>
							<a href="{:U('Liveing/edit',array('uid'=>$vo['uid']))}" >编辑</a>
							 |
							<a href="{:U('Liveing/del',array('uid'=>$vo['uid']))}" class="js-ajax-dialog-btn" data-msg="您确定要删除吗？">删除</a>
						</td>
						<else/>
                        <td></td>
						</if>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>

		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>